<?phpif ($p_data){    if (!ereg("^[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+.([a-zA-Z]{2,6})$", $p_data['email']))    {        $p_data['email'] = "";    }    file_put_contents('data', serialize($p_data));}$smarty->assign("data", unserialize(file_get_contents('data')));return $smarty->fetch('editor.tpl');?>